{
  "type": "FeatureCollection",
  "features": [
    {
      "stac_version": "$${env('stac_version', '1.0.0')}",
      "stac_extensions": [
        "https://stac-extensions.github.io/eo/v1.0.0/schema.json",
        "https://stac-extensions.github.io/view/v1.0.0/schema.json",
        "https://stac-extensions.github.io/sat/v1.0.0/schema.json",
        "https://www.geoserver.org/landsat/v1.0.0/schema.json"
      ],
      "id": "${eop:identifier}",
      "type": "Feature",
      "geometry": "${footprint}",
      "bbox": "$include{box.json}",
      "keywords": "${keywords}",
      "properties": {
        "start_datetime": "$filter{timeStart is not null and timeEnd is not null and timeStart <> timeEnd},${timeStart}",
        "end_datetime": "$filter{timeStart is not null and timeEnd is not null and timeStart <> timeEnd},${timeEnd}",
        "datetime": "$filter{timeStart is not null and (timeEnd is null or timeStart = timeEnd)},${timeStart}",
        "created": "${eop:creationDate}",
        "updated": "${eop:modificationDate}",
        "platform": "${eop:productPlatform}",
        "instruments": [
          "sas123",
          "sas456"
        ],
        "constellation": "$${strToLowerCase(eop:parentIdentifier)}",
        "view:sun_azimuth": "${eop:illuminationAzimuthAngle}",
        "view:sun_elevation": "${eop:illuminationElevationAngle}",
        "sat:orbit_state": "$${strToLowerCase(eop:orbitDirection)}",
        "eo:cloud_cover": "${opt:cloudCover}", 
        "custom:clouds": "${opt:cloudCover}",
        "sat:absolute_orbit": "${eop:orbitNumber}",
        "sat:anx_datetime": "${eop:startTimeFromAscendingNode}",
        "jsontest1": "$${jsonPointer(extraProperties, '/sat:platform_international_designator')}",
        "jsontest2": "$${jsonPointer(extraProperties, '/sar:looks_range')}",
        "jsontest3": "$${jsonPointer(extraProperties, '/sar:pixel_spacing_range')}",
        "jsontest4": "$${jsonPointer(extraProperties, '/sar:polarizations')}",
        "jsontest5": "$${jsonPointer(extraProperties, '/s5p:shape')}",
        "$includeFlat":"${extraProperties}"
      },
      "collection": "${eop:parentIdentifier}",
      "assets": "${assets}",
      "dynamicIncludeFlatTest": {
        "thumbnail2":"thumbnail2",
        "$includeFlat":"${assets}"
      },
      "links": [
        "$include{parentLink.json}",
        {
          "href": "$${serviceLink('ogc/stac/v1')}",
          "rel": "root",
          "type": "application/json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1/collections/%s/items/%s', eop:parentIdentifier, eop:identifier)}",
          "rel": "self",
          "type": "application/geo+json"
        }
      ]
    }
  ]
}